package com.jiaeda.shiroweb.service.imp;

import com.jiaeda.shiroweb.entity.SysRolePermission;
import com.jiaeda.shiroweb.mapper.SysRolePermissionMapper;
import com.jiaeda.shiroweb.service.SysRolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chengchaopeng on 2018/6/27.
 */
@Service
public class SysRolePermissionServiceImp implements SysRolePermissionService {


    @Autowired
    private SysRolePermissionMapper sysRoleAuthorityMapper;


    @Override
    public List<SysRolePermission> findByRoleIds(String[] roleIds) {
        return sysRoleAuthorityMapper.findByRoleIds(roleIds);
    }
}
